<?php

class Kd_Configuration {

    private $_settings= NULL;

    public function __construct($settings = array()) {
        $this->_settings = new Kd_Collection_Array($settings);
    }

    public function getSetting($key, $default = ''){
        return $this->_settings->get($key, $default);
    }

    public function setSetting($key, $value){
        $this->_settings->set($key, $value);
        return $this;
    }

    public static function parseFile($filename){
        return new self(Kd_Util_Yaml::parseFile($filename));
    }
}